#ifndef WINSETNEWZIGBEECMD_H
#define WINSETNEWZIGBEECMD_H

#include "Command/BaseCmd.h"
#include "Protocol/PointProtocol.h"

class WinSetAllowJoinCmd : public BaseCmd
{
    Q_OBJECT
public:
    Q_INVOKABLE explicit WinSetAllowJoinCmd(QObject *parent = 0);

    enum{FunctionCode = PointProtocol::AllowNewJoin};

    Package toPackage();
    void unPackage(Package package);

//    bool isSucceed() const;
//    void setIsSucceed(bool isSucceed);

private:
    bool m_isSucceed;
};


class WinSetBanJoinCmd : public BaseCmd
{
    Q_OBJECT
public:
    Q_INVOKABLE explicit WinSetBanJoinCmd(QObject *parent = 0);

    enum{FunctionCode = PointProtocol::BanNewJoin};

    Package toPackage();
    void unPackage(Package package);

//    bool isSucceed() const;
//    void setIsSucceed(bool isSucceed);

private:
    bool m_isSucceed;
};

class WinSetQueryNewZigbeeParamCmd : public BaseCmd
{
    Q_OBJECT
public:
    Q_INVOKABLE explicit WinSetQueryNewZigbeeParamCmd(QObject *parent = 0);

    enum{FunctionCode = PointProtocol::QueryNewZigbeeParam};

    Package toPackage();
    void unPackage(Package package);

//    bool isSucceed() const;
//    void setIsSucceed(bool isSucceed);

private:
    bool m_isSucceed;
};

class WinSetQueryZigbeeVersionCmd : public BaseCmd
{
    Q_OBJECT
public:
    Q_INVOKABLE explicit WinSetQueryZigbeeVersionCmd(QObject *parent = 0);

    enum{FunctionCode = PointProtocol::QueryZigbeeVersion};

    Package toPackage();
    void unPackage(Package package);


private:
    bool m_isSucceed;
};
#endif // WINSETNEWZIGBEECMD_H
